inherited dtmxs_OrderMaster: Tdtmxs_OrderMaster
  OldCreateOrder = True
  Left = 802
  Top = 381
  Height = 496
  Width = 660
  inherited adsMaster: TADODataSet
    CursorType = ctStatic
    CommandText = 'Select * from V_xs_OrderMaster where 0=1'
    Left = 88
    Top = 56
    object adsMasterOrderID: TStringField
      DisplayLabel = #35746#21333'ID'
      FieldName = 'OrderID'
    end
    object adsMasterOrderNo: TStringField
      DisplayLabel = #35746#21333#32534#21495
      FieldName = 'OrderNo'
    end
    object adsMasterOrderDate: TDateTimeField
      DisplayLabel = #19979#21333#26085#26399
      FieldName = 'OrderDate'
    end
    object adsMasterOrderType: TStringField
      DisplayLabel = #35746#21333#31867#22411'ID'
      FieldName = 'OrderType'
    end
    object adsMasterOrderTypeName: TStringField
      DisplayLabel = #35746#21333#31867#22411
      FieldName = 'OrderTypeName'
      Size = 50
    end
    object adsMasterOrderStatus: TStringField
      DisplayLabel = #35746#21333#29366#24577'ID'
      FieldName = 'OrderStatus'
    end
    object adsMasterOrderStatusName: TStringField
      DisplayLabel = #35746#21333#29366#24577
      FieldName = 'OrderStatusName'
      Size = 50
    end
    object adsMasterOrderKind: TStringField
      DisplayLabel = #19979#21333#26041#24335'ID'
      FieldName = 'OrderKind'
    end
    object adsMasterOrderKindName: TStringField
      DisplayLabel = #19979#21333#26041#24335
      FieldName = 'OrderKindName'
      Size = 50
    end
    object adsMasterOrderFlow: TStringField
      DisplayLabel = #28304#21333#31867#22411
      FieldName = 'OrderFlow'
    end
    object adsMasterDataType: TStringField
      DisplayLabel = #21333#25454#31867#22411
      FieldName = 'DataType'
    end
    object adsMasterSaleType: TStringField
      DisplayLabel = #38144#21806#31867#22411'ID'
      FieldName = 'SaleType'
    end
    object adsMasterSaleTypeName: TStringField
      DisplayLabel = #38144#21806#31867#22411
      FieldName = 'SaleTypeName'
      Size = 50
    end
    object adsMasterDeptID: TStringField
      DisplayLabel = #20844#21496'ID'
      FieldName = 'DeptID'
    end
    object adsMasterCustID: TStringField
      DisplayLabel = #23458#25143'ID'
      FieldName = 'CustID'
    end
    object adsMasterCustCode: TStringField
      DisplayLabel = #23458#25143#32534#30721
      FieldName = 'CustCode'
    end
    object adsMasterCustShortName: TStringField
      DisplayLabel = #23458#25143#21517#31216
      FieldName = 'CustShortName'
      Size = 50
    end
    object adsMasterCustFullName: TStringField
      DisplayLabel = #23458#25143#20840#31216
      FieldName = 'CustFullName'
      Size = 100
    end
    object adsMasterHelperCode: TStringField
      DisplayLabel = #21161#35760#30721
      FieldName = 'HelperCode'
      Size = 50
    end
    object adsMasterEmpID: TStringField
      DisplayLabel = #19994#21153#21592
      FieldName = 'EmpID'
    end
    object adsMasterEmpName: TStringField
      DisplayLabel = #19994#21153#21592
      FieldName = 'EmpName'
    end
    object adsMasterCurrencyID: TStringField
      DisplayLabel = #24065#21035'ID'
      FieldName = 'CurrencyID'
    end
    object adsMasterCurrencyName: TStringField
      DisplayLabel = #24065#21035
      FieldName = 'CurrencyName'
    end
    object adsMasterExchangeRate: TFloatField
      DisplayLabel = #27719#29575
      FieldName = 'ExchangeRate'
    end
    object adsMasterFetchType: TStringField
      DisplayLabel = #20132#36135#26041#24335'ID'
      FieldName = 'FetchType'
    end
    object adsMasterFetchTypeName: TStringField
      DisplayLabel = #20132#36135#26041#24335
      FieldName = 'FetchTypeName'
      Size = 50
    end
    object adsMasterFetchAddress: TStringField
      DisplayLabel = #20132#36135#22320#22336
      FieldName = 'FetchAddress'
      Size = 80
    end
    object adsMasterContractNo: TStringField
      DisplayLabel = #21512#21516#32534#21495
      FieldName = 'ContractNo'
      Size = 50
    end
    object adsMasterHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
  end
  inherited adsMasterEdit: TADODataSet
    CursorType = ctStatic
    CommandText = 'Select * from xs_OrderMaster'
    object adsMasterEditOrderID: TStringField
      DisplayLabel = #35746#21333'ID'
      FieldName = 'OrderID'
    end
    object adsMasterEditOrderNo: TStringField
      DisplayLabel = #35746#21333#32534#21495
      FieldName = 'OrderNo'
    end
    object adsMasterEditOrderDate: TDateTimeField
      DisplayLabel = #19979#21333#26085#26399
      FieldName = 'OrderDate'
    end
    object adsMasterEditOrderType: TStringField
      DisplayLabel = #35746#21333#31867#22411'ID'
      FieldName = 'OrderType'
    end
    object adsMasterEditres_OrderTypeName: TStringField
      DisplayLabel = #35746#21333#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_OrderTypeName'
      LookupDataSet = res_OrderType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'OrderType'
      Size = 50
      Lookup = True
    end
    object adsMasterEditOrderStatus: TStringField
      DisplayLabel = #35746#21333#29366#24577'ID'
      FieldName = 'OrderStatus'
    end
    object adsMasterEditres_OrderStatusName: TStringField
      DisplayLabel = #35746#21333#29366#24577
      FieldKind = fkLookup
      FieldName = 'res_OrderStatusName'
      LookupDataSet = res_OrderStatus
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'OrderStatus'
      Size = 50
      Lookup = True
    end
    object adsMasterEditOrderKind: TStringField
      DisplayLabel = #19979#21333#31867#22411'ID'
      FieldName = 'OrderKind'
    end
    object adsMasterEditres_OrderKindName: TStringField
      DisplayLabel = #19979#21333#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_OrderKindName'
      LookupDataSet = res_OrderKind
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'OrderKind'
      Size = 50
      Lookup = True
    end
    object adsMasterEditOrderFlow: TStringField
      DisplayLabel = #28304#21333#31867#22411'ID'
      FieldName = 'OrderFlow'
    end
    object adsMasterEditDataType: TStringField
      DisplayLabel = #21333#25454#31867#22411'ID'
      FieldName = 'DataType'
    end
    object adsMasterEditSaleType: TStringField
      DisplayLabel = #38144#21806#31867#22411'ID'
      FieldName = 'SaleType'
    end
    object adsMasterEditres_SaleTypeName: TStringField
      DisplayLabel = #38144#21806#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_SaleTypeName'
      LookupDataSet = res_SaleType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'SaleType'
      Size = 50
      Lookup = True
    end
    object adsMasterEditDeptID: TStringField
      DisplayLabel = #20844#21496'ID'
      FieldName = 'DeptID'
    end
    object adsMasterEditCustID: TStringField
      DisplayLabel = #23458#25143'ID'
      FieldName = 'CustID'
    end
    object adsMasterEditres_CustName: TStringField
      DisplayLabel = #23458#25143#21517#31216
      FieldKind = fkLookup
      FieldName = 'res_CustName'
      LookupDataSet = res_Customer
      LookupKeyFields = 'CustID'
      LookupResultField = 'CustShortName'
      KeyFields = 'CustID'
      Size = 50
      Lookup = True
    end
    object adsMasterEditres_CustFullName: TStringField
      DisplayLabel = #23458#25143#20840#31216
      FieldKind = fkLookup
      FieldName = 'res_CustFullName'
      LookupDataSet = res_Customer
      LookupKeyFields = 'CustID'
      LookupResultField = 'CustFullName'
      KeyFields = 'CustID'
      Size = 100
      Lookup = True
    end
    object adsMasterEditEmpID: TStringField
      DisplayLabel = #19994#21153#21592#24037#21495
      FieldName = 'EmpID'
    end
    object adsMasterEditres_empname: TStringField
      DisplayLabel = #19994#21153#21592#22995#21517
      FieldKind = fkLookup
      FieldName = 'res_EmpName'
      LookupDataSet = res_Employee
      LookupKeyFields = 'EmpID'
      LookupResultField = 'EmpName'
      KeyFields = 'EMPID'
      Size = 30
      Lookup = True
    end
    object adsMasterEditCurrencyID: TStringField
      DisplayLabel = #24065#21035'ID'
      FieldName = 'CurrencyID'
    end
    object adsMasterEditres_CurrencyName: TStringField
      DisplayLabel = #24065#21035
      FieldKind = fkLookup
      FieldName = 'res_CurrencyName'
      LookupDataSet = res_Currency
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'CurrencyID'
      Lookup = True
    end
    object adsMasterEditExchangeRate: TFloatField
      DisplayLabel = #27719#29575
      FieldName = 'ExchangeRate'
    end
    object adsMasterEditFetchType: TStringField
      DisplayLabel = #20132#36135#26041#24335'ID'
      FieldName = 'FetchType'
    end
    object adsMasterEditres_FetchTypeName: TStringField
      DisplayLabel = #20132#36135#26041#24335
      FieldKind = fkLookup
      FieldName = 'res_FetchTypeName'
      LookupDataSet = res_FetchType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'FetchType'
      Size = 50
      Lookup = True
    end
    object adsMasterEditFetchAddress: TStringField
      DisplayLabel = #20132#36135#22320#22336
      FieldName = 'FetchAddress'
      Size = 80
    end
    object adsMasterEditContractNo: TStringField
      DisplayLabel = #21512#21516#32534#21495
      FieldName = 'ContractNo'
      Size = 50
    end
    object adsMasterEditMaxOrderDetailNo: TIntegerField
      DisplayLabel = #26126#32454#26368#22823'ID'
      FieldName = 'MaxOrderDetailNo'
    end
    object adsMasterEdititems: TStringField
      DisplayLabel = #35746#21333#26465#27454
      FieldName = 'items'
      Size = 1500
    end
    object adsMasterEditHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterEditChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterEditCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterEditWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterEditWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterEditModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterEditModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterEditRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
  end
  object adsDetail: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    BeforePost = adsDetailBeforePost
    AfterScroll = adsDetailAfterScroll
    OnNewRecord = adsDetailNewRecord
    CommandText = 'Select * from xs_OrderDetail where 0=1'
    EnableBCD = False
    Parameters = <>
    Left = 192
    Top = 40
    object adsDetailID: TStringField
      FieldName = 'ID'
    end
    object adsDetailOrderID: TStringField
      DisplayLabel = #35746#21333'ID'
      FieldName = 'OrderID'
    end
    object adsDetailOrderDetailNo: TStringField
      DisplayLabel = #35746#21333#26126#32454#21333#21495
      FieldName = 'OrderDetailNo'
    end
    object adsDetailTechPathID: TStringField
      DisplayLabel = #24037#33402#36335#32447'ID'
      FieldName = 'TechPathID'
      OnChange = adsDetailTechPathIDChange
    end
    object adsDetailres_TechPathName: TStringField
      DisplayLabel = #24037#33402#36335#32447
      FieldKind = fkLookup
      FieldName = 'res_TechPathName'
      LookupDataSet = res_TechPathList
      LookupKeyFields = 'BillID'
      LookupResultField = 'TechName'
      KeyFields = 'TechPathID'
      Size = 100
      Lookup = True
    end
    object adsDetailProductID: TStringField
      DisplayLabel = #29289#26009'ID'
      FieldName = 'ProductID'
      OnChange = adsDetailProductIDChange
    end
    object adsDetailProductCode: TStringField
      DisplayLabel = #29289#26009#32534#30721
      FieldName = 'ProductCode'
      Size = 50
    end
    object adsDetailProductName: TStringField
      DisplayLabel = #29289#26009#21517#31216
      FieldName = 'ProductName'
      Size = 200
    end
    object adsDetailSpecs: TStringField
      DisplayLabel = #35268#26684
      FieldName = 'Specs'
      Size = 200
    end
    object adsDetailColorID: TStringField
      DisplayLabel = #33394#21495'ID'
      FieldName = 'ColorID'
    end
    object adsDetailColorCode: TStringField
      Tag = 2
      DisplayLabel = #33394#21495
      FieldName = 'ColorCode'
    end
    object adsDetailColorName: TStringField
      Tag = 2
      DisplayLabel = #39068#33394
      FieldName = 'ColorName'
      Size = 50
    end
    object adsDetailPieceCount: TFloatField
      DisplayLabel = #20214#25968
      FieldName = 'PieceCount'
    end
    object adsDetailNumber: TBCDField
      DisplayLabel = #25968#37327
      FieldName = 'Number'
      OnChange = adsDetailNumberChange
      Precision = 18
      Size = 2
    end
    object adsDetailUnitID: TStringField
      DisplayLabel = #21333#20301'ID'
      FieldName = 'UnitID'
      OnChange = adsDetailUnitIDChange
    end
    object adsDetailres_UnitName: TStringField
      DisplayLabel = #21333#20301
      FieldKind = fkLookup
      FieldName = 'res_UnitName'
      LookupDataSet = res_Unit
      LookupKeyFields = 'UnitID'
      LookupResultField = 'UnitName'
      KeyFields = 'UnitID'
      Lookup = True
    end
    object adsDetailPrice: TFloatField
      DisplayLabel = #21333#20215
      FieldName = 'Price'
      OnChange = adsDetailPriceChange
    end
    object adsDetailMoney: TBCDField
      DisplayLabel = #37329#39069
      FieldName = 'Money'
      Precision = 18
      Size = 2
    end
    object adsDetailOrderPrice: TFloatField
      DisplayLabel = #35746#21333#21333#20215
      FieldName = 'OrderPrice'
    end
    object adsDetailOrderMoney: TFloatField
      DisplayLabel = #35746#21333#37329#39069
      FieldName = 'OrderMoney'
    end
    object adsDetailCostMoney: TFloatField
      DisplayLabel = #25104#26412#37329#39069
      FieldName = 'CostMoney'
    end
    object adsDetailProfitMoney: TFloatField
      DisplayLabel = #27611#21033
      FieldName = 'ProfitMoney'
    end
    object adsDetailProduceRequest: TStringField
      DisplayLabel = #29983#20135#35201#27714
      FieldName = 'ProduceRequest'
      Size = 500
    end
    object adsDetailPackRequest: TStringField
      DisplayLabel = #21253#35013#35201#27714
      FieldName = 'PackRequest'
      Size = 500
    end
    object adsDetailStockKG: TFloatField
      DisplayLabel = #24403#21069#24211#23384'(KG)'
      FieldName = 'StockKG'
    end
    object adsDetailOrderNumber: TFloatField
      DisplayLabel = #19979#21333#25968#37327'(KG)'
      FieldName = 'OrderNumber'
    end
    object adsDetailRequestDate: TDateTimeField
      Tag = 2
      DisplayLabel = #20132#36135#26085#26399
      FieldName = 'RequestDate'
    end
    object adsDetailStatus: TIntegerField
      DisplayLabel = #29366#24577
      FieldName = 'Status'
    end
    object adsDetailProcessSpecsID: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009'ID'
      FieldName = 'ProcessSpecsID'
    end
    object adsDetailProcessSpecsCode: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009#32534#30721
      FieldName = 'ProcessSpecsCode'
      Size = 50
    end
    object adsDetailProcessSpecsName: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009#21517#31216
      FieldName = 'ProcessSpecsName'
      Size = 100
    end
    object adsDetailProcessSpecs: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009#35268#26684
      FieldName = 'ProcessSpecs'
      Size = 200
    end
    object adsDetailProcessID: TStringField
      DisplayLabel = #24403#21069#29983#20135#24037#24207'ID'
      FieldName = 'ProcessID'
    end
    object adsDetailProcessTime: TDateTimeField
      DisplayLabel = #24403#21069#29983#20135#26102#38388
      FieldName = 'ProcessTime'
    end
    object adsDetailres_ProcessName: TStringField
      DisplayLabel = #24403#21069#29983#20135#24037#24207
      FieldKind = fkLookup
      FieldName = 'res_ProcessName'
      LookupDataSet = res_Process
      LookupKeyFields = 'ProcessID'
      LookupResultField = 'ProcessName'
      KeyFields = 'ProcessID'
      Size = 50
      Lookup = True
    end
    object adsDetailWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsDetailWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsDetailModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsDetailModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsDetailRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
  end
  object adsBrowseDetail: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select * from xs_OrderDetail where 0=1'
    EnableBCD = False
    Parameters = <>
    Left = 464
    Top = 40
    object adsBrowseDetailID: TStringField
      FieldName = 'ID'
    end
    object adsBrowseDetailOrderID: TStringField
      DisplayLabel = #20851#32852'ID'
      FieldName = 'OrderID'
    end
    object adsBrowseDetailOrderDetailNo: TStringField
      DisplayLabel = #35746#21333#26126#32454#21333#21495
      FieldName = 'OrderDetailNo'
    end
    object adsBrowseDetailProductID: TStringField
      DisplayLabel = #29289#26009'ID'
      FieldName = 'ProductID'
    end
    object adsBrowseDetailProductCode: TStringField
      DisplayLabel = #29289#26009#32534#30721
      FieldName = 'ProductCode'
      Size = 50
    end
    object adsBrowseDetailProductName: TStringField
      DisplayLabel = #29289#26009#21517#31216
      FieldName = 'ProductName'
      Size = 200
    end
    object adsBrowseDetailSpecs: TStringField
      DisplayLabel = #29289#26009#35268#26684
      FieldName = 'Specs'
      Size = 200
    end
    object adsBrowseDetailColorID: TStringField
      DisplayLabel = #33394#21495'ID'
      FieldName = 'ColorID'
    end
    object adsBrowseDetailColorCode: TStringField
      DisplayLabel = #33394#21495
      FieldName = 'ColorCode'
    end
    object adsBrowseDetailColorName: TStringField
      DisplayLabel = #39068#33394
      FieldName = 'ColorName'
      Size = 50
    end
    object adsBrowseDetailPieceCount: TFloatField
      DisplayLabel = #20214#25968
      FieldName = 'PieceCount'
    end
    object adsBrowseDetailNumber: TBCDField
      DisplayLabel = #25968#37327
      FieldName = 'Number'
      OnChange = adsDetailNumberChange
      Precision = 18
      Size = 2
    end
    object adsBrowseDetailUnitID: TStringField
      DisplayLabel = #21333#20301'ID'
      FieldName = 'UnitID'
    end
    object adsBrowseDetailres_UnitName: TStringField
      DisplayLabel = #21333#20301
      FieldKind = fkLookup
      FieldName = 'res_UnitName'
      LookupDataSet = res_Unit
      LookupKeyFields = 'UnitID'
      LookupResultField = 'UnitName'
      KeyFields = 'UnitID'
      Lookup = True
    end
    object adsBrowseDetailWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsBrowseDetailWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsBrowseDetailModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsBrowseDetailModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsBrowseDetailRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
  end
  object res_Customer: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      'Select CustID, CustCode, CustShortName, CustFullName from V_da_C' +
      'ustomer'
    Parameters = <>
    Left = 192
    Top = 104
  end
  object adsOrderType: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_xs_OrderType'
    Parameters = <>
    Left = 328
    Top = 104
  end
  object adsUserCompany: TADODataSet
    Connection = dtmConnect.conMain
    LockType = ltBatchOptimistic
    CommandText = 
      'select b.DeptID, b.DeptCode, b.DeptName from xt_CompanySet a '#13#10'j' +
      'oin da_Department b on a.CompanyID=b.DeptID'#13#10'where a.UserID=(sel' +
      'ect UserID from xt_Users where UserCode=:UserCode)'#13#10'and isnull(b' +
      '.HasStop,0)=0'
    Parameters = <
      item
        Name = 'UserCode'
        Size = -1
        Value = Null
      end>
    Left = 464
    Top = 104
  end
  object frdsDetail: TfrDBDataSet
    DataSet = adsDetail
    Left = 112
    Top = 176
  end
  object res_Unit: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select UnitID, UnitCode, UnitName from V_da_Unit'
    Parameters = <>
    Left = 192
    Top = 176
  end
  object adsDetailList: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    AfterOpen = adsDetailListAfterOpen
    BeforePost = adsDetailListBeforePost
    OnNewRecord = adsDetailListNewRecord
    CommandText = 'Select * from xs_OrderDetailList where 0=1'
    EnableBCD = False
    Parameters = <>
    Left = 328
    Top = 40
    object adsDetailListID: TAutoIncField
      FieldName = 'ID'
      ReadOnly = True
    end
    object StringField2: TStringField
      DisplayLabel = #35746#21333'ID'
      FieldName = 'OrderID'
    end
    object adsDetailListOrderDetailID: TStringField
      DisplayLabel = #35746#21333#26126#32454'ID'
      FieldName = 'OrderDetailID'
    end
    object adsDetailListOrderDetailNo: TStringField
      DisplayLabel = #35746#21333#26126#32454#21333#21495
      FieldName = 'OrderDetailNo'
    end
    object adsDetailListProcessOrderID: TIntegerField
      DisplayLabel = #24207#21495
      FieldName = 'ProcessOrderID'
    end
    object adsDetailListProcessID: TStringField
      DisplayLabel = #24037#24207'ID'
      FieldName = 'ProcessID'
    end
    object adsDetailListres_ProcessName: TStringField
      DisplayLabel = #24037#24207
      FieldKind = fkLookup
      FieldName = 'res_ProcessName'
      LookupDataSet = res_Process
      LookupKeyFields = 'ProcessID'
      LookupResultField = 'ProcessName'
      KeyFields = 'ProcessID'
      Size = 50
      Lookup = True
    end
    object adsDetailListOrderPieceCount: TFloatField
      DisplayLabel = #35746#21333#20214#25968
      FieldName = 'OrderPieceCount'
    end
    object adsDetailListWeight: TFloatField
      DisplayLabel = #37325#37327'(KG)'
      FieldName = 'Weight'
    end
    object adsDetailListMeter: TFloatField
      DisplayLabel = #31859#25968
      FieldName = 'Meter'
    end
    object adsDetailListYard: TFloatField
      DisplayLabel = #30721#25968
      FieldName = 'Yard'
    end
    object adsDetailListBeginDate: TDateTimeField
      DisplayLabel = #24320#22987#26102#38388
      FieldName = 'BeginDate'
    end
    object adsDetailListEndDate: TDateTimeField
      DisplayLabel = #32467#26463#26102#38388
      FieldName = 'EndDate'
    end
    object adsDetailListOrderDate: TDateTimeField
      DisplayLabel = #19979#21333#26085#26399
      FieldName = 'OrderDate'
    end
    object adsDetailListRequestDate: TDateTimeField
      DisplayLabel = #35201#27714#20132#26399
      FieldName = 'RequestDate'
    end
    object adsDetailListPlanOverDate: TDateTimeField
      DisplayLabel = #39044#35745#23436#25104#26102#38388
      FieldName = 'PlanOverDate'
    end
    object adsDetailListSupplyShortName: TStringField
      DisplayLabel = #20379#24212#21830#21517#31216
      FieldName = 'SupplyShortName'
      Size = 200
    end
    object adsDetailListProcessSpecsID: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009'ID'
      FieldName = 'ProcessSpecsID'
    end
    object adsDetailListProcessSpecsCode: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009#32534#30721
      FieldName = 'ProcessSpecsCode'
      Size = 50
    end
    object adsDetailListProcessSpecsName: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009#21517#31216
      FieldName = 'ProcessSpecsName'
      Size = 100
    end
    object adsDetailListProcessSpecs: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009#35268#26684
      FieldName = 'ProcessSpecs'
      Size = 200
    end
    object adsDetailListStatus: TStringField
      DisplayLabel = #29366#24577
      FieldName = 'Status'
    end
    object adsDetailListStatusInfo: TWideStringField
      DisplayLabel = #29366#24577#20449#24687
      FieldName = 'StatusInfo'
      Size = 500
    end
    object adsDetailListStatusInfoer: TStringField
      DisplayLabel = #29366#24577#25805#20316#20154
      FieldName = 'StatusInfoer'
    end
    object adsDetailListStatusInfoTime: TDateTimeField
      DisplayLabel = #29366#24577#25805#20316#26102#38388
      FieldName = 'StatusInfoTime'
    end
    object StringField24: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object DateTimeField2: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object StringField25: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object DateTimeField3: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object StringField26: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
  end
  object res_Process: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ProcessID, ProcessName from V_da_Process'
    Parameters = <>
    Left = 328
    Top = 176
  end
  object res_Employee: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select EmpID, EmpName from V_da_Employee'
    Parameters = <>
    Left = 192
    Top = 248
  end
  object res_Currency: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_da_Currency'
    Parameters = <>
    Left = 464
    Top = 248
  end
  object adsProcess: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      'Select ProcessID, ProcessCode, ProcessName,HasInPut  from V_da_P' +
      'rocess'
    Parameters = <>
    Left = 464
    Top = 176
    object adsProcessProcessID: TStringField
      DisplayLabel = 'ID'
      FieldName = 'ProcessID'
    end
    object adsProcessProcessCode: TStringField
      DisplayLabel = #32534#30721
      FieldName = 'ProcessCode'
    end
    object adsProcessProcessName: TStringField
      DisplayLabel = #21517#31216
      FieldName = 'ProcessName'
      Size = 50
    end
    object adsProcessHasInPut: TBooleanField
      FieldName = 'HasInPut'
    end
  end
  object res_TechPathList: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select BillID, TechName from V_da_TechPath'
    Parameters = <>
    Left = 328
    Top = 248
  end
  object res_OrderType: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_xs_OrderType'
    Parameters = <>
    Left = 328
    Top = 320
  end
  object res_SaleType: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_xs_SaleType'
    Parameters = <>
    Left = 464
    Top = 320
  end
  object res_OrderStatus: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_xs_OrderStatus'
    Parameters = <>
    Left = 192
    Top = 320
  end
  object res_OrderKind: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_xs_OrderKind'
    Parameters = <>
    Left = 64
    Top = 320
  end
  object res_FetchType: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_xs_FetchType'
    Parameters = <>
    Left = 64
    Top = 248
  end
end
